package com.tree.rpc.netty.provider;

import com.tree.rpc.netty.api.IRpcCalc;

/**
 * @ClassName com.tree.rpc.netty.provider
 * Description: <类功能描述>. <br>
 * <p>
 * <使用说明>
 * </p>
 * @Author tree
 * @Date 2019-11-07 00:00
 * @Version 1.0
 */
public class RpcCalcProvider implements IRpcCalc {
    @Override
    public int add(int a, int b) {
        return a+b;
    }

    @Override
    public int sub(int a, int b) {
        return a-b;
    }

    @Override
    public int mult(int a, int b) {
        return a*b;
    }

    @Override
    public int div(int a, int b) {
        return a/b;
    }
}
